<?php
namespace MyProject1{
        const name = 'davin';
        const CONNECT_OK = 1;
        class Connection { /* ... */ }
        function connect() { /* ... */  }
};

namespace MyProject2 {
        const name = 'john';
        const CONNECT_OK = 1;
        class Connection { /* ... */ }
        function connect() { /* ... */  }
}

namespace MyProject\SubProject {
        const CONNECT_OK = 1;
        class Connection { /* ... */ }
        function connect() { /* ... */  }
}
?>